#include <CommandDelete.h>
Inheritance diagram for CommandDelete:

Public Member Functions | |
| CommandDelete (OSGWindows *osgwind) | |
| CommandDelete (OSGWindows *osgwind, TraffEduObject *obj) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | deletedObjs_ |
| int | rightCLK |
| TraffEduObject * | obj_ |
Definition at line 8 of file CommandDelete.h.
|
|
A constructor. Initializes osgwind_ and rightCLK variables. It is called if the delete operation is done from the menubar.
Definition at line 2 of file CommandDelete.cpp. References deletedObjs_, OSGWindows::getSelectedObjects(), osgwind, osgwind_, and rightCLK. |
|
||||||||||||
|
A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the delete operation is done from the menubar.
Definition at line 10 of file CommandDelete.cpp. References deletedObjs_, obj_, osgwind, osgwind_, and rightCLK. |
|
|
do the delete operation.
Implements Command. Definition at line 20 of file CommandDelete.cpp. References OSGWindows::clearSelectedObjects(), deletedObjs_, OSGWindows::doDeleteGeode(), osgwind_, and rightCLK. |
|
|
undo the delete operation.
Implements Command. Definition at line 33 of file CommandDelete.cpp. References deletedObjs_, OSGWindows::doAddGeode(), osgwind_, rightCLK, and OSGWindows::setSelectedObjects(). |
|
|
a private vector of TraffEduObjects. It holds the deleted objects. Definition at line 22 of file CommandDelete.h. Referenced by CommandDelete(), execute(), and unexecute(). |
|
|
a private variable. It is used to hold the deleted object. Definition at line 34 of file CommandDelete.h. Referenced by CommandDelete(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandDelete.h. Referenced by CommandDelete(), execute(), and unexecute(). |
|
|
a private variable. It shows if the CommandDelete is called from the RightClickMenu or not. Definition at line 28 of file CommandDelete.h. Referenced by CommandDelete(), execute(), and unexecute(). |
1.4.6-NO